<template>
	<view class="stores_content" @click="chonseStores(item)">
		<view class="sc_title">
			{{item.am_name}}
		</view>
		<view class="sc_tag">
			<tm-tags  size="n" model="fill">部分支持自助取还</tm-tags>
		</view>
		<view class="sc_address">
			地址：{{item.am_address}}<br>
			营业时间： {{item.am_time}}
		</view>
	</view>
</template>

<script>
	
	export default {
		name:'StoresContent',
		props:{
			item:{
				type:Object,
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			chonseStores(item){
				uni.$emit('getaddress',item.am_name)
				uni.switchTab({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.stores_content{
	width: 100%;
	background-color: #ffffff;
	padding: 20rpx;
	box-sizing: border-box;
	margin-bottom: 30rpx;
	.sc_title{
		font-weight: 600;
		font-size: 32rpx; 
	}
	.sc_address{
		font-size: 26rpx;
		color: #868686;
	}
}
</style>
